package com.yingli.android_studying.recycler.adapter.viewholder;

import android.view.View;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.yingli.android_studying.R;

public class SampleViewHolder extends RecyclerView.ViewHolder {
    public TextView tvName;
    public TextView tvDate;
    public TextView tvContent;

    //这是必须写的
    public SampleViewHolder(@NonNull View itemView) {
        super(itemView);
        tvName = itemView.findViewById(R.id.tv_name);
        tvDate = itemView.findViewById(R.id.tv_date);
        tvContent = itemView.findViewById(R.id.tv_content);
    }

}
